#import <Foundation/Foundation.h>

@protocol DumbDownloadManagerDelegate <NSObject>
- (void) dumbDownloadManagerDataDownloadFinished: (NSString *) fileName;
- (void) dumbDownloadManagerDataDownloadFailed: (NSString *) reason;
@end

@interface DumbDownloadManager : NSObject {
	
@private
	id <DumbDownloadManagerDelegate> _delegate;
	
	NSString	*_title;
	NSURL		*_fileURL;
	NSString	*_fileName;
	NSURLConnection *_URLConnection;
}

@property (nonatomic, assign) id <DumbDownloadManagerDelegate> delegate;
@property (nonatomic, retain) NSString *title;
@property (nonatomic, retain) NSURL *fileURL;
@property (nonatomic, retain) NSString *fileName;
@property (nonatomic, retain) NSURLConnection *URLConnection;

- (void)start;
- (void)writeToFile:(NSData *)data;
@end



